<!DOCTYPE html>
<html>
<head>
    <title>验证中</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="keywords" content=""/>
    <meta name="description" content=""/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"/>
    <meta name="format-detection" content="telephone=no"/>
    <link rel="stylesheet" href="/Public/css.css"/>
</head>
<body  style="background-color: color:white" promoter_id="{$promoter_en.promoter_id}">
<script type="text/javascript">
    (function () {
        document.documentElement.style.fontSize = (document.body.offsetWidth/320) * 14 + 'px';
    })()
</script>
<div class="load_part" style="background-image: url('/Public/images/local_loading.gif');
    height: 250px;
    background-color: white;
    width: 800px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 320px 240px;
    margin: 0px -211px;
    padding-top: 150px;">
    <!-- <img src="/Public/images/local_loading.gif" alt=""/> -->
    <!-- <div>请耐心等待,如长时间无反应,请接入WIFI后重试</div> -->
</div>
<div class="load_part" style="text-align: center; margin-top: -105px;">
	如长时间无反应,请接入WIFI后重试
</div>
<script type="text/javascript" src="/Public/js/jquery-1.12.3.min.js"></script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
<script>
$(document).ready(function(){
	pushHistory();  
    window.addEventListener("popstate", function(e) {  
    	wx.closeWindow();
    }, false);  
    function pushHistory() {  
        var state = {title: "title", url: "#"};  
        window.history.pushState(state, "title", "#");  
    }  
	//读取配置
	wx.config(eval({$wx_config}));
	var user_id = "{$user_id}";
	var user_name = "{$user_name}";
	var meeting_id = "{$meeting_id}";
	wx.ready(function(){
		//获取地理位置接口
		wx.getLocation({
		    type: 'wgs84', // 默认为wgs84的gps坐标，如果要返回直接给openLocation用的火星坐标，可传入'gcj02'
		    success: function (res) {
		       var longitude = res.longitude ; // 经度，浮点数，范围为180 ~ -180。
		       var latitude = res.latitude; // 纬度，浮点数，范围为90 ~ -90
		       var speed = res.speed; // 速度，以米/每秒计
		       var accuracy = res.accuracy; // 位置精度
		       var params = 'user_id='+user_id+'&user_name='+user_name+'&meeting_id='+meeting_id+'&latitude='+latitude+'&longitude='+longitude;
		       window.location.href = '/wechat/doMeetingSignIn?'+params;
		    }
		});
	});
	
});
</script>





